<div id="movecategory" style="margin:10px;">
<input type="hidden" id="oldgid" value="{$gid}">
	{:L('tip_changenew_1')}: <p style="margin:5px;">
			<select id="newgid">
				<option value="0">{:L('no_group')}</option>
				<volist id="vo" name="grouplist">
			   	 <option value="{$key}">{$vo}</option>
				</volist>
			</select></p>
</div>

<script>
	function dochangegroupdel(){
		var id = $('#oldgid').val();
		$.post('{:U("home/Colleague/managegroup")}',{id:id,toid:$('#newgid').val(),type:'movetodel'},function(txt){
			txt = eval('('+txt+')');
			if(txt.status){
				$("#group_"+id).remove();
			}else{
				$.tbox.no(txt.info,"{:L('fail')}");
			}
		});
	}
</script>